<template>
  <dv-full-screen-container>
    <header>
      <div></div>
      <h3>城市超脑</h3>
      <div></div>
    </header>
    <main>
      <router-view></router-view>
    </main>
    <footer>
      <ul>
        <li :class="[index === viewList.selected ? 'select' : '']" v-for="(item, index) in viewList.list" :key="index" @click="viewList.selected = index">{{item.name}}</li>       
      </ul>
    </footer>
  </dv-full-screen-container>
</template>

<script>
export default {
  name: 'App',
  data() {
    return {
      componentList: [
        {nameA: "view1", nameB: "view2", selected: false},
        {nameA: "view3", nameB: "view4", selected: false}
      ],
      setTimeId: null,
      active: 0,
      viewList: {
        selected: 0,
        list: [
          {name: "宏观决策"},
          {name: "城市管理"},
          {name: "社区治理"},
          {name: "民生服务"},
          {name: "重点安全"},
          {name: "生态环境"},
          {name: "疫情防控"}
        ]
      }
    }
  },
  created() {

  },
  methods: {
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}
#dv-full-screen-container {
  background-image: url("./assets/img/bg.jpg");
  display: flex;
  flex-direction: column;
}
#dv-full-screen-container >header {
  /* min-height: 42px; */
  padding: 12px;
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: space-between;
}
#dv-full-screen-container >header>div, #dv-full-screen-container >header>h3 {
  flex: 1;
}
#dv-full-screen-container >header>h3 {
  font-family: "ZaoZiGongFangBanHeiChangGuiTiZiTi-1";
  font-size: 54px;
}
#dv-full-screen-container >main {
  padding: 12px 20px;
  flex: 1;
  display: flex;
  justify-content: space-between;
}
#dv-full-screen-container >footer>ul {
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  padding: 16px 20px;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: space-around;
}
#dv-full-screen-container >footer>ul>li {
  position: relative;
  z-index: 1;
}
#dv-full-screen-container >footer>ul>li.select::after {
  content:"";
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  position: absolute;
  top: 0;
  left: 0;
  background-color: #038EE9;
  filter: blur(4px);
  z-index: -1;
}
@keyframes spin {
  0% {
    border-width: 10px;
    transform: rotate(-360deg);
  }
  25% {
    border-width: 8px;
    transform: rotate(-270deg);
  }
  50% {
    border-width: 6px;
    transform: rotate(-180deg);
  }
  75% {
    border-width: 4px;
    transform: rotate(-90deg);
  }
  100% {
    border-width: 2px;
    transform: rotate(0deg);
  }
}
</style>